import { configureStore } from "@reduxjs/toolkit";

import userReducer from "../pages/UserList/userSlice";

const store = configureStore({
  reducer: {
    user: userReducer,
  },
});

// 整个redux管理数据的类型
export type RootState = ReturnType<typeof store.getState>;
// dispatch函数类型
export type AppDispatch = typeof store.dispatch;

export default store;
